﻿using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

using System.Xml.Serialization;
using System.IO;
using HeSeHus.Import.Controller;
using HeSeHus.Import.Interface;



namespace HeSeHus.Import.Parser
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        ImportController _import;
        public MainWindow()
        {
            InitializeComponent();
            _import = new ImportController();
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();
            ofd.Filter = ".xml |*.xml";
            ofd.ShowDialog();
            lblSti.Content = ofd.FileName;
        }

        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            Dictionary<IProduct,List<IProductDetail>> temp = _import.ExportProduct(lblSti.Content.ToString());

        }

        


    }
}
